using DG.Tweening;
using DG.Tweening.Core;
using UnityEngine;
using UnityEngine.UI;

namespace WorkFlow.TweenGo
{
    public class GraphicColorTween : TweenGoBase<Graphic, Color>
    {
        protected override Tweener CreateTween(DOGetter<Color> startValueGetter, DOSetter<Color> setter, Color endValue, float duration)
        {
            return DOTween.To(startValueGetter, setter, endValue, duration);
        }

        protected override void SetValue(Color value)
        {
            Target.color = value;
        }
    }
}

